package com.latam.arq.example.domain;

import java.io.Serializable;

import javax.validation.constraints.NotNull;
import org.hibernate.validator.constraints.NotBlank;

public class ExampleReportData implements Serializable {
	private static final long serialVersionUID = 2972052088151553735L;
	
	@NotNull(message="{domain.report.left}")
	@NotBlank(message="{domain.report.left}")
	private String left;
	
	@NotNull(message="{domain.report.center}")
	@NotBlank(message="{domain.report.center}")
	private String center;
	
	@NotNull(message="{domain.report.right}")
	@NotBlank(message="{domain.report.right}")
	private String right;
	
	public ExampleReportData() {
		
	}

	public String getLeft() {
		return left;
	}

	public void setLeft(String left) {
		this.left = left;
	}

	public String getCenter() {
		return center;
	}

	public void setCenter(String center) {
		this.center = center;
	}

	public String getRight() {
		return right;
	}

	public void setRight(String right) {
		this.right = right;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((center == null) ? 0 : center.hashCode());
		result = prime * result + ((left == null) ? 0 : left.hashCode());
		result = prime * result + ((right == null) ? 0 : right.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		return true;
	}

	@Override
	public String toString() {
		return "ExampleReportData [left=" + left + ", center=" + center
				+ ", right=" + right + "]";
	}
	
}
